package cn.lp207663436.dynamicmanager.service;

import cn.lp207663436.dynamicmanager.pojo.entity.CustomDataSourcePropertyEntity;
import com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DataSourceProperty;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 自定义数据源表 服务类
 * </p>
 *
 * @author luopeng
 * @since 2023-07-04
 */
public interface CustomDataSourcePropertyService extends IService<CustomDataSourcePropertyEntity> {

    /**
     * 添加数据源到数据源池中
     * @param dataSourceProperty 数据源实体对象
     */
    void addDatasource(DataSourceProperty dataSourceProperty);

    /**
     * 删除数据源
     * @param poolName 数据源名称
     */
    void removeDatasource(String poolName);
}
